package com.dataporter.gather.web;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.dataporter.gather.patient.Patient;
import com.dataporter.gather.server.Temperature;
import com.dataporter.gather.server.TemperatureService;

@Controller
@RequestMapping("/gather")
public class GatherController {
	@Resource
	private TemperatureService temperatureService;

	@RequestMapping("/query.action")
	public String query(Patient patient) {
		List<Temperature> list = this.temperatureService.query(
				patient.getEquipNo(), patient.getStartTime(),
				patient.getEndTime(), null);
		return new EasyUiMessage().toString();
	}
}